#!/bin/sh

#
# Allows the user to override environmental variables if wanted. Only
# sets the environmental variable if the environmental variable has
# not already been set.
#
set_ifn()
{
	var=$1
	shift
	val=$1

	cmd="echo \$$var"
	existing=`eval $cmd`

	if [ -z "$existing" ]; then
		export $var=$val
	fi
}

set_ifn TX_ID test1
# On a real installation this should be /var/run/neon/neon-tx.sock
set_ifn TX_ADDR neon-tx.sock

export PYTHONPATH=.

exec python tx/tx.py $*
